// i.d(t, { G1: () => a, rn: () => l, D5: () => c, Ex: () => h })
import * as THREE from "three"
import funcUtil from "../utils/func.util"
const r = () => Math.random(),
  o = {},
  a = (e, t = r()) => (o[t] || (o[t] = new THREE.Vector4(r(), r(), r(), e)), o[t]),
  l = () => new THREE.Color(r(), r(), r()),
  c = e => "object" == typeof e && "r" in e && "g" in e && "b" in e
function h(e) {
  return `#${funcUtil.numToStr(255 * e.r, 2, "0", 16)}${funcUtil.numToStr(255 * e.g, 2, "0", 16)}${funcUtil.numToStr(255 * e.b, 2, "0", 16)}`
}
export default {
  G1: a,
  rn: l,
  D5: c,
  Ex: h
}
